package com.app.ytong.bean;

import com.alibaba.fastjson.annotation.JSONField;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Generated;

@Entity(indexes = {@Index(value = "kid,kna", unique = true)})
public class UnitListData extends BasisBean {

    /**
     *   {
     *       "kid": "1486984007902359553",
     *       "aid": "2",
     *       "kna": "KG11",
     *       "uno": "2001"
     *     },
     *     {
     *       "kid": "1485854192818245634",
     *       "aid": "2",
     *       "kna": "斤",
     *       "uno": "admin"
     *     },
     *     {
     *       "kid": "1485854158097797122",
     *       "aid": "2",
     *       "kna": "g",
     *       "uno": "admin"
     *     },
     *     {
     *       "kid": "1485854070143242241",
     *       "aid": "2",
     *       "kna": "KG",
     *       "uno": "admin"
     *     }
     */
    private static final long serialVersionUID = 1L;


    @JSONField(name = "kid")
    private String kid;
    @JSONField(name = "aid")
    private String aid;
    @JSONField(name = "kna")
    private String kna;
    @JSONField(name = "uno")
    private String uno;

    @Generated(hash = 1734532898)
    public UnitListData(String kid, String aid, String kna, String uno) {
        this.kid = kid;
        this.aid = aid;
        this.kna = kna;
        this.uno = uno;
    }

    @Generated(hash = 64066413)
    public UnitListData() {
    }

    public String getKid() {
        return kid;
    }

    public void setKid(String kid) {
        this.kid = kid;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public String getKna() {
        return kna;
    }

    public void setKna(String kna) {
        this.kna = kna;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }
}
